home *** CD-ROM | disk | FTP | other *** search
- Path: cliffy.lfwc.lockheed.com!news
- From: Ken Garlington <GarlingtonKE@lfwc.lockheed.com>
- Newsgroups: comp.object,comp.software-eng,comp.lang.c++,comp.lang.ada
- Subject: Re: Moving from C to C++
- Date: Thu, 22 Feb 1996 16:44:16 +0000
- Organization: Lockheed Martin Tactical Aircraft Systems
- Message-ID: <312C9D60.286D@lfwc.lockheed.com>
- References: <4fak3f$3op@news4.digex.net> <1996Feb9.233739.24043@amc.com> <4g8ctn$7do@news4.digex.net> <4g9jos$7cl@soap.news.pipex.net>
- NNTP-Posting-Host: ub_998356_mtm7.lfwc.lockheed.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Macintosh; I; 68K)
-
- Dirk Wessels wrote:
- >
- > Hello,
- >
- > I implemented inheritance in C by making a function-table for each class
- > and calling the functions indirectly.
- > While I wanted to use C++ needed to use this because:
-
- Perhaps you should have considered using Ada.
-
- > 1. The system should be compatible with almost any other platform.
- > Only GNU-C++ was fully compatible accross platforms,
- > but was not available for all versions of Unix.
-
- Ada is available on a variety of platforms.
-
- > 2. The program should be readable by other programmers.
- > Most other programmers only knew C.
-
- Ada is quite readable - in fact, it was designed to be this way.
-
- > 3. The other parts of the system were build in C and Fortran.
- > If you are adding C++ as well to the language-set it gets
- > very hard to fit them together.
-
- Ada has explicit support for operation with other languages such as C and
- Fortran.
-
- > 4. The program should be able to compile for quite a few years.
- > The C++ standard was changing and still is.
-
- Ada is an ISO standard (the first ISO standard for a full object-oriented
- language, in fact), and is quite stable.
-